package model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import reactor.core.publisher.Mono;

import java.util.Map;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class MethodInfo {
    private String uri;
    private HttpMethod method;
    private Map<String, Object> params;
    private Mono<?> body;

    private Class<?> bodyElementType;
    /**
     * Flux :true
     * Mono :false
     */
    private boolean returnFlux;
    /**
     * 对象的实际类型
     */
    private Class<?> returnElementType;
//    private MediaType mediaType;
}
